<html>
    <body>
        <button onclick="bntClick()">click me</button>
        <button onclick="bntClick1()">click me1</button>
    </body>
    <script>

        function bntClick(){
            alert("lxy! ");
        }

        var bntClick1 = function(){
            alert("lxy1! ");
        }

        // setTimeout(()=>{
        //     bntClick1();
        // },1000);

        function out(){
            var Anum = 1;
            //单向作用域链
            function inner(){
                var Bnum = 2;
                console.log(Anum);
            }
            return inner;
        }

        out();

        var numc;
        // console.log(typeof(numc));

        var obj = null;
        // console.log(typeof(obj));

        // console.log(obj === null);

        this.lxy = "my name is lxy!";
        console.log(window.lxy);

        var obj = {
            name:"lxy",
            eat:function(arguments){
                console.log(this);
                // console.log(this.name);
            }
        }

        obj.eat(1,2,4,5);

        
    </script>
</html>